import request from "@/utils/request";

class ServiceApi {
    /// 分类列表
  static YzKindGetList(data) {
    return request({
      url: "/api/YzKind/getList",
      method: "post",
      data
    });
  }

  /// 分类保存
  static YzKindSave(data) {
    return request({
      url: "/api/YzKind/save",
      method: "post",
      data
    });
  }

  /// 分类更新
  static YzKindUpdate(data) {
    return request({
      url: "/api/YzKind/update",
      method: "post",
      data
    });
  }
  /// 分类删除
  static YzKindDel(id) {
    return request({
      url: "/api/YzKind/del/" + id,
      method: "post",
    });
  }

  /// 产品列表
  static netYzServiceGetList(data) {
    return request({
      url: "/api/YzProduct/getList",
      method: "post",
      data
    });
  }
  
  /// 产品保存
  static netYzServiceSave(data) {
    return request({
      url: "/api/YzProduct/save",
      method: "post",
      data
    });
  }
  /// 产品保存
  static netYzProductUpdate(data) {
    return request({
      url: "/api/YzProduct/update",
      method: "post",
      data
    });
  }
  /// 产品删除
  static netYzProductDel(data) {
    return request({
      url: `/api/YzProduct/del/${data.id}`,
      method: "post",
      data
    });
  }
}

export default ServiceApi;
